package com.aaa.stat.controller;

import com.aaa.entity.UUserInfo;
import com.aaa.stat.service.UserInfoService;
import com.aaa.stat.vo.UUserInfoVo;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;

@Api("stat/UserInfo")
@RestController
@RequestMapping("stat/UserInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userService;



    @PostMapping("/findUser")
    public Result findUser(Integer currentPage, Integer pageSize, String startTime, String endTime){
        return userService.UserInfoAll(currentPage, pageSize, startTime, endTime);
    }


    @PostMapping("/code")
    public Result<Integer> code(Integer status ,String id) {
        Result<Integer> code = userService.code(status, id);
        return code;
    }


}
